import app from './app';

const start = async () => {
  try {
    const address = await app.listen({ port: 3000 })
    console.log(`Server listening on ${address}`)
  } catch (err) {
    app.log.error(err)
    process.exit(1)
  }
}

start()